Skip to content

fix: preserve CLI bins in npm package - #2

Merged
cucuwang merged 1 commit into
mainfrom
fix/v0.6-publish-bin
Aug 19, 2026
Merged

fix: preserve CLI bins in npm package#2
cucuwang merged 1 commit into
mainfrom
fix/v0.6-publish-bin

Conversation

@cucuwang

Copy link
Copy Markdown
Owner

What changed

  • normalize the three npm bin paths so publisher metadata keeps aeoptimize, aeo, and aeo-cli
  • normalize the repository URL to npm's canonical Git URL
  • add a regression test for the published CLI aliases and repository metadata

Why

With npm 11.17.0, npm publish --dry-run removed the previous ./dist/cli/index.js bin entries as invalid. Publishing that manifest would install the package without its documented CLI commands and would also break the v0.6.0 GitHub Action.

User impact

The packed package now retains all three CLI aliases. A clean tarball installation can invoke each alias and receives version 0.6.0.

Validation

  • npm run check: 60 tests passed and TypeScript build completed
  • npm publish --dry-run --json: completed without publisher metadata corrections
  • packed package.json: all three bin entries retained
  • isolated tarball install: aeoptimize --version, aeo --version, and aeo-cli --version each returned 0.6.0

This PR does not create a tag, publish a GitHub Release, or publish to npm.

@cucuwang
cucuwang marked this pull request as ready for review August 19, 2026 10:40
Copilot AI lite review requested due to automatic review settings August 19, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cucuwang
cucuwang merged commit a306c03 into main Aug 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants